package com.example.studentportrait.service;

import com.example.studentportrait.domain.entity.Email;
import com.example.studentportrait.utils.Pagebean;

public interface EmailService {
    int addEmail(Email email);
    int updateEmail(Email email);
    int deleteEmail(Email email);
    Pagebean getByDraft(int page,int pagesize,String account);
    Pagebean getBySender(int page,int pagesize,String account);
    Pagebean getByReceiver(int page,int pagesize,String account);
    Pagebean getByCollect(int page,int pagesize,String account);
    int setCollect(Email email);
}
